<?php

namespace app\admin\model;

use think\Model;

class Notice extends Model
{
    //
    protected $table = 'notices';

    protected $autoWriteTimestamp = 'datetime';

    protected $dateFormat = 'Y-m-d H:i:s';

    protected $createTime = 'created_at';

    protected $updateTime = 'updated_at';

    public function noticecate()
    {

        return $this->belongsTo('Noticecate', 'notice_node_id');
    }
}
